Skip to content

Conversation

dummdidumm
Copy link
Member

create a vercel.json for each of them and redirect to the corresponding pages on svelte.dev

create a vercel.json for each of them and redirect to the corresponding pages on svelte.dev
Copy link

vercel bot commented Oct 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
omnisite ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 22, 2024 7:57pm
svelte-dev 🔄 Building (Inspect) Visit Preview 💬 Add feedback Oct 22, 2024 7:57pm

"$schema": "https://openapi.vercel.sh/vercel.json",
"redirects": [
{
"source": "/(.*)",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will be cumbersome; we basically need to go through all the links and find out the right equivalent on the new one

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah right, because of the /tutorial/svelte vs /tutorial/kit thing

"source": "/docs/(.*)",
"destination": "https://svelte.dev/docs/kit/$1",
"permanent": true
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we have a catch-all fallback, so that people at least end up on the right site if they somehow find a bad link?

@dummdidumm
Copy link
Member Author

ending my workday now, feel free to take over

{
"source": "/(.*)",
"destination": "https://svelte.dev/$1",
"permanent": true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might want to skip permanent on whatever fallback we have for this one so that if there's some URL we missed we have an opportunity to fix it

@benmccann
Copy link
Member

should we also add a vercel.json for https://svelte-5-preview.vercel.app/?

@dummdidumm
Copy link
Member Author

Didn't get around to adding this here, but I think for that one we should have an app, so that we can redirect the hash links - there's too many of them by now to not migrate them

@Rich-Harris
Copy link
Member

i think it'll break all the hash links — might need to redirect from the browser, not sure

working on the tutorial slugs

@Rich-Harris
Copy link
Member

alright, i feel good about this — will merge and start updating the site configs

@Rich-Harris Rich-Harris merged commit fb4e7f6 into main Oct 22, 2024
1 of 3 checks passed
@Rich-Harris Rich-Harris deleted the redirect-sites branch October 22, 2024 19:53
"permanent": true
},
{
"source": "/docs/modules",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need a URL for each individual type here

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we're going to have to build an app which checks what the hash is and redirects it appropriately to the correct page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants